import NewExpenseReportComp from "containers/expense-report/new-expense-report";
import ExpenseReportDetailComp from "containers/expense-report/base-expense-report-detail";
import ExpenseReportComp from "containers/expense-report/expense-report";
import ScanSendComp from "containers/financial-management/scan-send/scan-send";

//报销单
const expenseParentReport = {
  key:'expense-parent-report',
  icon: 'file-text',
  company: true,
  url: '/main/expense-parent-report/expense-report',
  components: ExpenseReportComp,
  children: {
    //报销单
    expenseReport: {
      key: 'expense-report',
      url: '/main/expense-parent-report/expense-report',
      components: ExpenseReportComp,
      parent: 'expense-parent-report'
    },

    //报销单详情
    expenseReportDetail: {
      key: 'expense-report-detail',
      url: '/main/expense-parent-report/expense-report/expense-report-detail/:expenseReportOID/:pageFrom',
      components: ExpenseReportDetailComp,
      parent: 'expense-parent-report'
    },
    //报销单新建
    newExpenseReport: {
      key: 'new-expense-report',
      url: '/main/expense-parent-report/expense-report/new-expense-report/:formId/:userOID/:applicationOID/:applicantJobId/:proxy/:driverId',
      components: NewExpenseReportComp,
      parent: 'expense-parent-report'
    }
  },

  // subMenu: [
  //   {
  //     key: 'expense-report',
  //     url: '/main/expense-parent-report/expense-report',
  //     components: ExpenseReportComp,
  //     parent: 'expense-parent-report',
  //     children: {
  //       //报销单详情
  //       expenseReportDetail: {
  //         key: 'expense-report-detail',
  //         url: '/main/expense-parent-report/expense-report/expense-report-detail/:expenseReportOID/:pageFrom',
  //         components: ExpenseReportDetailComp,
  //         parent: 'expense-report'
  //       },
  //       //报销单新建
  //       newExpenseReport: {
  //         key: 'new-expense-report',
  //         url: '/main/expense-parent-report/expense-report/new-expense-report/:formId/:userOID/:applicationOID/:applicantJobId/:proxy/:driverId',
  //         components: NewExpenseReportComp,
  //         parent: 'expense-report'
  //       }
  //     }
  //   },
  //   //扫码寄单
  //   {
  //     key: 'scan-send',
  //     url: '/main/expense-parent-report/scan-send',
  //     components: ScanSendComp,
  //     parent: 'expense-parent-report',
  //     fpItem: ['document.send.enable'],
  //     fpValue: [true]
  //   }
  // ],
  fpItem: ["er.disabled"],
  fpValue: [[false,undefined]]
};

export default expenseParentReport
